\section{Appendix}
I will here explain where to find the implementation and how to run
the code. Note though, that you may not be able to run with as big
numbers as I could on my machine\footnote{See section \ref{bugs} for
  more info.}. On the other hand it might be possible to run with
larger numbers, as the problem is not with the raw power of the
machine. 
\paragraph{Code source: } \url{http://mpc.googlecode.com/svn/trunk/code/}

\subsection{How to run the program}
First download the code using svn with the following command:
svn checkout http://mpc.googlecode.com/svn/trunk/code/ mpc

Now that you have all the needed source-code and jar-files, we can
begin the run of the program. go to mpc/code/src/ and run the Makefile
with the following command which both compiles and runs the program:

\texttt{make n=A1 mode=A2 gates=A3}

where A1 is the number of players you would like, A2 is the circuit
type you want to run and A3 is the number of multiplication gates you
want. No matter the mode, the circuit will always have $n$ input,
output and constant gates. The inputs are predetermined to be the
index of the user, so input gate no. $i$ receives the input $i$. All
output gates output the same value.

\begin{itemize}
  \item A2=1: Initiate a small circuit where the only extra added gates
    are 3 addition gates and 2 multiplication gates. A3 is in this
    case not important. Output should be 40 (mod $|F|$).
  \item A2=2: Initiate a circuit with A3 added multiplication gates
    with multiplicative depth of 1. Output should be 6.
\end{itemize}

The program will tell you at the end if the run was successful and
what the output was and in case of failure what it should have been.

Note that if running with any $n$ other than $n=\{5,6,9\}$, then
player elimination will occur, which sometimes causes the program to
fail. If this happens, one can try again until it is successful, but
above $n=15$, a Socket exception will occur no matter what when I run
the program on my machine. Note also that there remains a bug which
causes the output to be faulty in case of player elimination.
